/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Staff.java
 *
 * Created on Oct 21, 2010, 6:42:41 PM
 */

package matchmakingsystem;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JTable;
import java.sql.*;
import javax.swing.ButtonGroup;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JPopupMenu;
import javax.swing.JTextField;
import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Ducky
 */
public class Staff extends javax.swing.JFrame {

    Object[] deleteOptions = {"Yes", "No"};
    Object[] confirmOptions = {"Yes"};
    Object[] errorMesssage = {"Yes"};
    private Connection con;
    private Statement stmt;
    int countRowControl = 0;
    int countColumnControl = 0;
    boolean searching = false;
    boolean fillAll = true;
    MainMenu mainMenu;
    ViewAllStaff viewAllStaff;

    /** Creates new form Staff */
    public Staff()
    {
        super("Match Making Database System - Employee Module");
        initComponents();
        jPanel4.setVisible(false);
        jPanel7.setVisible(false);
        jPanel8.setVisible(false);
        jTextField18.setEnabled(false);
        jButton11.setEnabled(false);
        jButton2.setEnabled(false);
        jButton4.setEnabled(false);
        jPanel14.setVisible(false);
        groupButton();
        retrieveData();
      
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jPanel14 = new javax.swing.JPanel();
        jLabel47 = new javax.swing.JLabel();
        jComboBox7 = new javax.swing.JComboBox();
        jPanel3 = new javax.swing.JPanel();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jButton11 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        jTextField3 = new javax.swing.JTextField();
        jTextField4 = new javax.swing.JTextField();
        jTextField5 = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jTextField6 = new javax.swing.JTextField();
        jTextField7 = new javax.swing.JTextField();
        jTextField8 = new javax.swing.JTextField();
        jTextField9 = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        jFormattedTextField3 = new javax.swing.JFormattedTextField();
        jFormattedTextField4 = new javax.swing.JFormattedTextField();
        jRadioButton9 = new javax.swing.JRadioButton();
        jRadioButton10 = new javax.swing.JRadioButton();
        jRadioButton11 = new javax.swing.JRadioButton();
        jRadioButton12 = new javax.swing.JRadioButton();
        jComboBox5 = new javax.swing.JComboBox();
        jLabel45 = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        jComboBox6 = new javax.swing.JComboBox();
        jLabel48 = new javax.swing.JLabel();
        jLabel49 = new javax.swing.JLabel();
        jLabel52 = new javax.swing.JLabel();
        jLabel54 = new javax.swing.JLabel();
        jLabel56 = new javax.swing.JLabel();
        jTextField26 = new javax.swing.JTextField();
        jPanel6 = new javax.swing.JPanel();
        jButton6 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jPanel7 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jTextField10 = new javax.swing.JTextField();
        jTextField11 = new javax.swing.JTextField();
        jTextField12 = new javax.swing.JTextField();
        jTextField13 = new javax.swing.JTextField();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTextArea2 = new javax.swing.JTextArea();
        jTextField14 = new javax.swing.JTextField();
        jTextField15 = new javax.swing.JTextField();
        jTextField16 = new javax.swing.JTextField();
        jTextField17 = new javax.swing.JTextField();
        jSeparator2 = new javax.swing.JSeparator();
        jFormattedTextField5 = new javax.swing.JFormattedTextField();
        jFormattedTextField6 = new javax.swing.JFormattedTextField();
        jRadioButton5 = new javax.swing.JRadioButton();
        jRadioButton6 = new javax.swing.JRadioButton();
        jRadioButton7 = new javax.swing.JRadioButton();
        jRadioButton8 = new javax.swing.JRadioButton();
        jLabel43 = new javax.swing.JLabel();
        jLabel44 = new javax.swing.JLabel();
        jComboBox3 = new javax.swing.JComboBox();
        jComboBox4 = new javax.swing.JComboBox();
        jLabel57 = new javax.swing.JLabel();
        jTextField27 = new javax.swing.JTextField();
        jPanel10 = new javax.swing.JPanel();
        jButton8 = new javax.swing.JButton();
        jPanel8 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        jTextField18 = new javax.swing.JTextField();
        jTextField19 = new javax.swing.JTextField();
        jTextField20 = new javax.swing.JTextField();
        jTextField21 = new javax.swing.JTextField();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTextArea3 = new javax.swing.JTextArea();
        jTextField22 = new javax.swing.JTextField();
        jTextField23 = new javax.swing.JTextField();
        jTextField24 = new javax.swing.JTextField();
        jTextField25 = new javax.swing.JTextField();
        jSeparator3 = new javax.swing.JSeparator();
        jFormattedTextField1 = new javax.swing.JFormattedTextField();
        jFormattedTextField2 = new javax.swing.JFormattedTextField();
        jLabel41 = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jComboBox2 = new javax.swing.JComboBox();
        jRadioButton1 = new javax.swing.JRadioButton();
        jRadioButton2 = new javax.swing.JRadioButton();
        jRadioButton3 = new javax.swing.JRadioButton();
        jRadioButton4 = new javax.swing.JRadioButton();
        jLabel50 = new javax.swing.JLabel();
        jLabel51 = new javax.swing.JLabel();
        jLabel53 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        jLabel58 = new javax.swing.JLabel();
        jTextField28 = new javax.swing.JTextField();
        jPanel11 = new javax.swing.JPanel();
        jPanel13 = new javax.swing.JPanel();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel2.setBackground(java.awt.Color.white);
        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "EMPLOYEE PROFILES", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        jPanel2.setOpaque(false);
        jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setFont(new java.awt.Font("Purisa", 1, 14));
        jLabel1.setText("SEARCH:");
        jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 80, -1, 30));

        jTextField1.setFont(new java.awt.Font("Tahoma", 2, 11));
        jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextField1KeyReleased(evt);
            }
        });
        jPanel2.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 80, 300, 30));

        jButton1.setBackground(java.awt.Color.white);
        jButton1.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/search.gif"))); // NOI18N
        jButton1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jPanel2.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 80, 30, 30));

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "EMPLOYEE CODE", "EMPLOYEE NAME", "EMPLOYEE IC NUMBER"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable1.setOpaque(false);
        jScrollPane1.setViewportView(jTable1);
        jTable1.getColumnModel().getColumn(0).setResizable(false);
        jTable1.getColumnModel().getColumn(1).setResizable(false);
        jTable1.getColumnModel().getColumn(2).setResizable(false);

        jPanel2.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 130, 550, 450));

        jLabel47.setFont(new java.awt.Font("Tahoma", 2, 18));
        jLabel47.setText("No result found");

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(98, 98, 98)
                .addComponent(jLabel47, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(115, Short.MAX_VALUE))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()
                .addContainerGap(48, Short.MAX_VALUE)
                .addComponent(jLabel47, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(35, 35, 35))
        );

        jPanel2.add(jPanel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 130, 350, 110));

        jComboBox7.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "EMPLOYEE CODE", "IC NUMBER" }));
        jPanel2.add(jComboBox7, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 80, 130, 30));

        jButton2.setBackground(java.awt.Color.white);
        jButton2.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/user-info.gif"))); // NOI18N
        jButton2.setText("      EDIT     ");
        jButton2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jButton3.setBackground(java.awt.Color.white);
        jButton3.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/add-user.gif"))); // NOI18N
        jButton3.setText(" ADD NEW ");
        jButton3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jButton4.setBackground(java.awt.Color.white);
        jButton4.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/Delete Icon.png"))); // NOI18N
        jButton4.setText("  DELETE  ");
        jButton4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jButton5.setBackground(java.awt.Color.white);
        jButton5.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/home.gif"))); // NOI18N
        jButton5.setText("   MAIN   ");
        jButton5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jButton11.setBackground(java.awt.Color.white);
        jButton11.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/view-user.gif"))); // NOI18N
        jButton11.setText("     VIEW     ");
        jButton11.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });

        jButton12.setBackground(java.awt.Color.white);
        jButton12.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/view-user.gif"))); // NOI18N
        jButton12.setText("   VIEW ALL");
        jButton12.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap(103, Short.MAX_VALUE)
                .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(126, 126, 126)
                .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(23, 23, 23))
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 597, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(126, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(53, 53, 53)
                        .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 646, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(76, 76, 76)
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jPanel1.setBounds(0, 0, 960, 710);
        jLayeredPane1.add(jPanel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "NEW EMPLOYEE PROFILE", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        jPanel5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel2.setText("EMPLOYEE CODE:");
        jPanel5.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, -1, -1));

        jLabel3.setText("NAME:");
        jPanel5.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, -1, -1));

        jLabel4.setText("GENDER:");
        jPanel5.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, -1, 20));

        jLabel5.setText("I/C NUMBER:");
        jPanel5.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 180, -1, -1));

        jLabel6.setText("CONTACT:");
        jPanel5.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 300, -1, -1));

        jLabel7.setText("ADDRESS:");
        jPanel5.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 340, -1, -1));

        jLabel8.setText("D.O.B:");
        jPanel5.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 220, -1, -1));

        jLabel9.setText("SUCCESS CASE:");
        jPanel5.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 520, -1, -1));

        jLabel10.setText("FAILED CASE:");
        jPanel5.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 560, -1, -1));

        jLabel11.setText("TOTAL CASE:");
        jPanel5.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 600, -1, -1));

        jLabel12.setText("DATE JOINED:");
        jPanel5.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 450, -1, -1));

        jLabel13.setText("TOTAL SALES MADE:");
        jPanel5.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 640, -1, -1));

        jLabel14.setText("EMPLOYEE CATEGORY:");
        jPanel5.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 100, -1, 20));
        jPanel5.add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 60, 200, -1));
        jPanel5.add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 140, 200, -1));
        jPanel5.add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 180, 200, -1));
        jPanel5.add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 300, 200, -1));

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane2.setViewportView(jTextArea1);

        jPanel5.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 340, 200, -1));
        jPanel5.add(jTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 520, 140, -1));
        jPanel5.add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 560, 140, -1));
        jPanel5.add(jTextField8, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 600, 140, -1));
        jPanel5.add(jTextField9, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 640, 140, -1));
        jPanel5.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 490, 490, 10));

        jFormattedTextField3.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        jPanel5.add(jFormattedTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 220, 200, -1));

        jFormattedTextField4.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        jPanel5.add(jFormattedTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 450, 200, -1));

        jRadioButton9.setText("ADMINISTRATIVE");
        jPanel5.add(jRadioButton9, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 100, -1, -1));

        jRadioButton10.setText("STAFF");
        jPanel5.add(jRadioButton10, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 100, -1, -1));

        jRadioButton11.setText("MALE");
        jPanel5.add(jRadioButton11, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 260, -1, -1));

        jRadioButton12.setText("FEMALE");
        jPanel5.add(jRadioButton12, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 260, -1, -1));

        jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "CHINESE", "INDIAN", "MALAY", "OTHERS" }));
        jPanel5.add(jComboBox5, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 260, 110, -1));

        jLabel45.setText("RACE:");
        jPanel5.add(jLabel45, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 260, -1, 20));

        jLabel46.setText("RELIGION:");
        jPanel5.add(jLabel46, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 300, -1, 20));

        jComboBox6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "BUDDHIST", "HINDU", "ISLAM", "OTHERS" }));
        jPanel5.add(jComboBox6, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 300, 110, -1));

        jLabel48.setFont(new java.awt.Font("Tahoma", 2, 10));
        jLabel48.setText("(Example:02JAN2010) ");
        jPanel5.add(jLabel48, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 450, -1, 20));

        jLabel49.setFont(new java.awt.Font("Tahoma", 2, 10));
        jLabel49.setText("(Example:880607085789) ");
        jPanel5.add(jLabel49, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 180, -1, 20));

        jLabel52.setFont(new java.awt.Font("Tahoma", 3, 12));
        jLabel52.setText("Please fill in all the information before saving  ");
        jPanel5.add(jLabel52, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 660, -1, -1));

        jLabel54.setFont(new java.awt.Font("Tahoma", 2, 10));
        jLabel54.setText("(Example:02JAN2010) ");
        jPanel5.add(jLabel54, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 220, -1, 20));

        jLabel56.setText("NATIONALITY:");
        jPanel5.add(jLabel56, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 340, -1, -1));
        jPanel5.add(jTextField26, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 340, 110, -1));

        jButton6.setBackground(java.awt.Color.white);
        jButton6.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/add-button.png"))); // NOI18N
        jButton6.setText("    ADD    ");
        jButton6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jButton7.setBackground(java.awt.Color.white);
        jButton7.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/erase.gif"))); // NOI18N
        jButton7.setText(" CANCEL ");
        jButton7.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(31, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap(85, Short.MAX_VALUE)
                .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26))
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 653, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap(498, Short.MAX_VALUE)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 690, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
        );

        jPanel4.setBounds(0, 0, 890, 720);
        jLayeredPane1.add(jPanel4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel9.setBackground(java.awt.Color.white);
        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "STAFF PROFILE", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        jPanel9.setOpaque(false);
        jPanel9.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel15.setText("EMPLOYEE CODE:");
        jPanel9.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, -1, -1));

        jLabel16.setText("NAME:");
        jPanel9.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, -1, -1));

        jLabel17.setText("GENDER:");
        jPanel9.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, -1, 20));

        jLabel18.setText("I/C NUMBER:");
        jPanel9.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 180, -1, -1));

        jLabel19.setText("CONTACT:");
        jPanel9.add(jLabel19, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 300, -1, -1));

        jLabel20.setText("ADDRESS:");
        jPanel9.add(jLabel20, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 340, -1, -1));

        jLabel21.setText("D.O.B:");
        jPanel9.add(jLabel21, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 220, -1, -1));

        jLabel22.setText("SUCCESS CASE:");
        jPanel9.add(jLabel22, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 520, -1, -1));

        jLabel23.setText("FAILED CASE:");
        jPanel9.add(jLabel23, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 560, -1, -1));

        jLabel24.setText("TOTAL CASE:");
        jPanel9.add(jLabel24, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 600, -1, -1));

        jLabel25.setText("DATE JOINED:");
        jPanel9.add(jLabel25, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 450, -1, -1));

        jLabel26.setText("TOTAL SALES MADE:");
        jPanel9.add(jLabel26, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 640, -1, -1));

        jLabel27.setText("EMPLOYEE CATEGORY:");
        jPanel9.add(jLabel27, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 100, -1, 20));
        jPanel9.add(jTextField10, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 60, 200, -1));
        jPanel9.add(jTextField11, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 140, 200, -1));
        jPanel9.add(jTextField12, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 180, 200, -1));
        jPanel9.add(jTextField13, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 300, 200, -1));

        jTextArea2.setColumns(20);
        jTextArea2.setRows(5);
        jScrollPane3.setViewportView(jTextArea2);

        jPanel9.add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 340, 200, -1));
        jPanel9.add(jTextField14, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 520, 140, -1));
        jPanel9.add(jTextField15, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 560, 140, -1));
        jPanel9.add(jTextField16, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 600, 140, -1));
        jPanel9.add(jTextField17, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 640, 140, -1));
        jPanel9.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 490, 490, 10));

        jFormattedTextField5.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        jPanel9.add(jFormattedTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 220, 200, -1));

        jFormattedTextField6.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        jPanel9.add(jFormattedTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 450, 200, -1));

        jRadioButton5.setText("ADMINISTRATIVE");
        jPanel9.add(jRadioButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 100, -1, -1));

        jRadioButton6.setText("STAFF");
        jPanel9.add(jRadioButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 100, -1, -1));

        jRadioButton7.setText("MALE");
        jPanel9.add(jRadioButton7, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 260, -1, -1));

        jRadioButton8.setText("FEMALE");
        jPanel9.add(jRadioButton8, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 260, -1, -1));

        jLabel43.setText("RACE:");
        jPanel9.add(jLabel43, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 260, -1, 20));

        jLabel44.setText("RELIGION:");
        jPanel9.add(jLabel44, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 300, -1, 20));

        jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "CHINESE", "INDIAN", "MALAY", "OTHERS" }));
        jPanel9.add(jComboBox3, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 260, 110, -1));

        jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "BUDDHIST", "HINDU", "ISLAM", "OTHERS" }));
        jPanel9.add(jComboBox4, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 300, 110, -1));

        jLabel57.setText("NATIONALITY:");
        jPanel9.add(jLabel57, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 340, -1, -1));
        jPanel9.add(jTextField27, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 340, 110, -1));

        jButton8.setBackground(java.awt.Color.white);
        jButton8.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/red-mark.gif"))); // NOI18N
        jButton8.setText("       OK       ");
        jButton8.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
                .addContainerGap(152, Short.MAX_VALUE)
                .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, 657, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, 687, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jPanel7.setBounds(0, 0, 890, 720);
        jLayeredPane1.add(jPanel7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel12.setBackground(java.awt.Color.white);
        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "STAFF PROFILE", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        jPanel12.setOpaque(false);
        jPanel12.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel28.setText("STAFF CODE:");
        jPanel12.add(jLabel28, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, -1, -1));

        jLabel29.setText("NAME:");
        jPanel12.add(jLabel29, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, -1, -1));

        jLabel30.setText("GENDER:");
        jPanel12.add(jLabel30, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 264, -1, 20));

        jLabel31.setText("I/C NUMBER:");
        jPanel12.add(jLabel31, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 180, -1, -1));

        jLabel32.setText("CONTACT:");
        jPanel12.add(jLabel32, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 300, -1, -1));

        jLabel33.setText("ADDRESS:");
        jPanel12.add(jLabel33, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 340, -1, -1));

        jLabel34.setText("D.O.B:");
        jPanel12.add(jLabel34, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 220, -1, -1));

        jLabel35.setText("SUCCESS CASE:");
        jPanel12.add(jLabel35, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 520, -1, -1));

        jLabel36.setText("FAILED CASE:");
        jPanel12.add(jLabel36, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 560, -1, -1));

        jLabel37.setText("TOTAL CASE:");
        jPanel12.add(jLabel37, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 600, -1, -1));

        jLabel38.setText("DATE JOINED:");
        jPanel12.add(jLabel38, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 450, -1, -1));

        jLabel39.setText("TOTAL SALES MADE:");
        jPanel12.add(jLabel39, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 640, -1, -1));

        jLabel40.setText("STAFF CATEGORY:");
        jPanel12.add(jLabel40, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 100, -1, 20));
        jPanel12.add(jTextField18, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 60, 200, -1));
        jPanel12.add(jTextField19, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 140, 200, -1));
        jPanel12.add(jTextField20, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 180, 200, -1));
        jPanel12.add(jTextField21, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 300, 200, -1));

        jTextArea3.setColumns(20);
        jTextArea3.setRows(5);
        jScrollPane4.setViewportView(jTextArea3);

        jPanel12.add(jScrollPane4, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 340, 200, -1));
        jPanel12.add(jTextField22, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 520, 140, -1));
        jPanel12.add(jTextField23, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 560, 140, -1));
        jPanel12.add(jTextField24, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 600, 140, -1));
        jPanel12.add(jTextField25, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 640, 140, -1));
        jPanel12.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 490, 490, 10));

        jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        jPanel12.add(jFormattedTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 220, 200, -1));

        jFormattedTextField2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("ddMMMyyyy"))));
        jPanel12.add(jFormattedTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 450, 200, -1));

        jLabel41.setText("RACE:");
        jPanel12.add(jLabel41, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 260, -1, 20));

        jLabel42.setText("RELIGION:");
        jPanel12.add(jLabel42, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 300, -1, 20));

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "CHINESE", "INDIAN", "MALAY", "OTHERS" }));
        jPanel12.add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 260, 110, -1));

        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "BUDDHIST", "HINDU", "ISLAM", "OTHERS" }));
        jPanel12.add(jComboBox2, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 300, 110, -1));

        jRadioButton1.setText("ADMINISTRATIVE");
        jPanel12.add(jRadioButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 100, -1, -1));

        jRadioButton2.setText("STAFF");
        jPanel12.add(jRadioButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 100, -1, -1));

        jRadioButton3.setText("MALE");
        jPanel12.add(jRadioButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 260, -1, -1));

        jRadioButton4.setText("FEMALE");
        jPanel12.add(jRadioButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 260, -1, -1));

        jLabel50.setFont(new java.awt.Font("Tahoma", 2, 10));
        jLabel50.setText("(Example:02JAN2010) ");
        jPanel12.add(jLabel50, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 220, -1, 20));

        jLabel51.setFont(new java.awt.Font("Tahoma", 2, 10));
        jLabel51.setText("(Example:02JAN2010) ");
        jPanel12.add(jLabel51, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 450, -1, 20));

        jLabel53.setFont(new java.awt.Font("Tahoma", 3, 12));
        jLabel53.setText("Please fill in all the information before saving ");
        jPanel12.add(jLabel53, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 660, -1, -1));

        jLabel55.setFont(new java.awt.Font("Tahoma", 2, 10));
        jLabel55.setText("(Example:880607085789) ");
        jPanel12.add(jLabel55, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 180, -1, 20));

        jLabel58.setText("NATIONALITY:");
        jPanel12.add(jLabel58, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 340, -1, -1));
        jPanel12.add(jTextField28, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 340, 110, -1));

        jButton9.setBackground(java.awt.Color.white);
        jButton9.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/Save Icon.png"))); // NOI18N
        jButton9.setText("     SAVE     ");
        jButton9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        jButton10.setBackground(java.awt.Color.white);
        jButton10.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Images/erase.gif"))); // NOI18N
        jButton10.setText("  CANCEL  ");
        jButton10.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                .addContainerGap(32, Short.MAX_VALUE)
                .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(68, 68, 68))
        );

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addGap(662, 662, 662)
                .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(45, 45, 45))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addContainerGap(520, Short.MAX_VALUE)
                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, 649, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(238, Short.MAX_VALUE))
            .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, 685, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(24, Short.MAX_VALUE))
            .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel8.setBounds(0, 0, 890, 720);
        jLayeredPane1.add(jPanel8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 954, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 705, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents


//***************************** SETTING UP TABLE ********************************************
     NewTableModel newtable1 = new NewTableModel();
     NewTableModel newtable2 = new NewTableModel();

     public void setTable()
    {
        jTable1.setModel(newtable1);
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** RETRIEVING DATA FROM DATABASE *******************************
     private ResultSet getResultSet(String doubt)
    {
        connectDatabase();
        ResultSet outcome = null;
        try
        {
            stmt = con.createStatement();
            outcome = stmt.executeQuery(doubt);
        }
        catch (SQLException ex)
        {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
        return outcome;
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** CONNECTING DATABASE *****************************************
     private void connectDatabase()
    {
        try
        {
            Class.forName("oracle.jdbc.OracleDriver");
            con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "mms", "mms");
        }

        catch (ClassNotFoundException ex)
        {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
        catch (SQLException ex)
        {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** GROUPING RADIO BUTTONS **************************************
private void groupButton( ) {

        ButtonGroup bg1 = new ButtonGroup( );
        ButtonGroup bg2 = new ButtonGroup( );
        ButtonGroup bg3 = new ButtonGroup( );
        ButtonGroup bg4 = new ButtonGroup( );
        ButtonGroup bg5 = new ButtonGroup( );
        ButtonGroup bg6 = new ButtonGroup( );
        bg1.add(jRadioButton5);
        bg1.add(jRadioButton6);
        bg2.add(jRadioButton7);
        bg2.add(jRadioButton8);
        bg3.add(jRadioButton9);
        bg3.add(jRadioButton10);
        bg4.add(jRadioButton11);
        bg4.add(jRadioButton12);
        bg5.add(jRadioButton1);
        bg5.add(jRadioButton2);
        bg6.add(jRadioButton3);
        bg6.add(jRadioButton4);

    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** DISPLAYING DATA ON THE TABLE ********************************
    private void retrieveData()
    {
        jTable1.repaint();

        Dimension THIS_SIZE = (jLayeredPane1.getSize());
        jTable1.setMaximumSize(THIS_SIZE);
        jTable1.setMinimumSize(THIS_SIZE);
        jTable1.setPreferredSize(THIS_SIZE);

        int countRow = 0;
        int countColumn = 0;
        int countRow2 = 0;
        int countColumn2 = 0;
        int count = 0;

        connectDatabase();
        try
        {         
            Statement stmt = con.createStatement();         
            ResultSet rset = stmt.executeQuery("Select* From EMPLOYEE");

            while (rset.next())
            {
                countRow++;
            }
            
            ResultSetMetaData metadata = rset.getMetaData();
            countColumn = metadata.getColumnCount();

            newtable1.setDataSize(countRow, 3);
            newtable1.setColumnNameSize();

            DatabaseMetaData meta = con.getMetaData();

            ResultSet rset2 = meta.getColumns(null, null, "EMPLOYEE", null);

                newtable1.setColumnName(0,"EMPLOYEE CODE");
                newtable1.setColumnName(1,"EMPLOYEE NAME");
                newtable1.setColumnName(2,"EMPLOYEE IC NUMBER");

            count = 0;

            rset = stmt.executeQuery("Select* From EMPLOYEE");
            while(rset.next())
            {
                newtable1.addString(countRow2, countColumn2, rset.getString("EMP_CODE"));
                countColumn2++;
                newtable1.addString(countRow2, countColumn2, rset.getString("EMP_NAME"));
                countColumn2++;
                newtable1.addString(countRow2, countColumn2, rset.getString("EMP_IC"));
                countColumn2++;

                countColumn2 = 0;
                countRow2++;
            }
        }

        catch (Exception e)
        {
        System.out.println("Error");
        }

        this.setTable();

        if(searching == false){
        ListSelectionModel selectionModel = jTable1.getSelectionModel();
        selectionModel.addListSelectionListener(new ListSelectionListener() {

        public void valueChanged(ListSelectionEvent e)
        {
            jButton11.setEnabled(true);
            jButton2.setEnabled(true);
            jButton4.setEnabled(true);
        }
        });
        }
    }
 //*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



 //***************************** SHOWING INFORMATION FOR VIEWING ******************************
    private void viewData()
    {
        connectDatabase();
        try
        {
            jTextField10.setText((String) newtable1.getValueAt(jTable1.getSelectedRow(), 0));
            String getStaffCode = jTextField10.getText();
            Statement stmt = con.createStatement();

            ResultSet rset = getResultSet("SELECT * FROM EMPLOYEE WHERE EMP_CODE='"+getStaffCode+"'");
            ResultSet rset2 = getResultSet("SELECT SUM(CUS_PAYMENT) AS EMP_TOTALPAYMENT FROM SALES NATURAL JOIN CUSTOMER WHERE EMP_CODE='"+getStaffCode+"'");
            ResultSet rset3 = getResultSet("SELECT COUNT(EMP_CODE) AS EMP_TOTALCASE FROM CUSTOMER WHERE EMP_CODE = '"+getStaffCode+"' AND CUS_CASE = 'OPEN'");
            ResultSet rset4 = getResultSet("SELECT COUNT(EMP_CODE) AS EMP_TOTALSUCCESSCASE FROM CUSTOMER WHERE EMP_CODE = '"+getStaffCode+"' AND CUS_CASE = 'CLOSE'");
            ResultSet rset5 = getResultSet("SELECT COUNT(EMP_CODE) AS EMP_TOTALFAILEDCASE FROM CUSTOMER WHERE EMP_CODE = '"+getStaffCode+"' AND CUS_CASE = 'OPEN'");

            if (rset.next()){
                jTextField10.setText(rset.getString("EMP_CODE"));
                jTextField11.setText(rset.getString("EMP_NAME"));
                jTextField12.setText(rset.getString("EMP_IC"));
                jFormattedTextField5.setText(rset.getString("EMP_DOB"));

                if(rset.getString("EMP_GENDER").equals("MALE")){
                    jRadioButton7.setSelected(true);
                }

                else{
                    jRadioButton8.setSelected(true);
                }

                jComboBox3.setSelectedItem(rset.getString("EMP_RACE"));
                jComboBox4.setSelectedItem(rset.getString("EMP_RELIGION"));
                jTextField27.setText(rset.getString("EMP_NATIONALITY"));
                jTextField13.setText(rset.getString("EMP_CONTACT"));
                jTextArea2.setText(rset.getString("EMP_ADDRESS"));
                jFormattedTextField6.setText(rset.getString("EMP_INDATE"));               
                jTextField15.setText(rset.getString("EMP_TOTALFAILEDCASE"));

                if(rset.getString("EMP_TYPE").equals("ADMINISTRATIVE")) {
                    jRadioButton5.setSelected(true);
                }

                else{
                    jRadioButton6.setSelected(true);
                }
             }

                  if (rset2.next()) {
                      String emp_tp = rset2.getString("EMP_TOTALPAYMENT");

                      if(emp_tp!=null) {
                        jTextField17.setText(rset2.getString("EMP_TOTALPAYMENT"));
                      }
                      
                       else {
                          jTextField17.setText("0");
                       }
                    }

                  if (rset3.next()){
                      String emp_tc = rset3.getString("EMP_TOTALCASE");

                      if(emp_tc!=null) {
                        jTextField16.setText(rset3.getString("EMP_TOTALCASE"));
                      }
                      
                       else {
                          jTextField16.setText(rset3.getString("0"));
                       }
                   }

                  if (rset4.next())
                  jTextField14.setText(rset4.getString("EMP_TOTALSUCCESSCASE"));

                  if (rset5.next())
                  jTextField15.setText(rset5.getString("EMP_TOTALFAILEDCASE"));
                     
        }
        catch (SQLException ex)
        {
             System.out.println("Error in displaying information");
        }        
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** SHOWING INFORMATION FOR EDITING ******************************
    private void viewEditData()
    {
        connectDatabase();
        try
        {
            jTextField18.setText((String) newtable1.getValueAt(jTable1.getSelectedRow(), 0));
            String getStaffCode = jTextField18.getText();
            Statement stmt = con.createStatement();

            ResultSet rset = getResultSet("SELECT * FROM EMPLOYEE WHERE EMP_CODE='"+getStaffCode+"'");
            ResultSet rset2 = getResultSet("SELECT SUM(CUS_PAYMENT) AS EMP_TOTALPAYMENT FROM SALES NATURAL JOIN CUSTOMER WHERE EMP_CODE='"+getStaffCode+"'");
            ResultSet rset3 = getResultSet("SELECT COUNT(EMP_CODE) AS EMP_TOTALCASE FROM CUSTOMER WHERE EMP_CODE = '"+getStaffCode+"' AND CUS_CASE = 'OPEN'");
            ResultSet rset4 = getResultSet("SELECT COUNT(EMP_CODE) AS EMP_TOTALSUCCESSCASE FROM CUSTOMER WHERE EMP_CODE = '"+getStaffCode+"' AND CUS_CASE = 'CLOSE'");
            ResultSet rset5 = getResultSet("SELECT COUNT(EMP_CODE) AS EMP_TOTALFAILEDCASE FROM CUSTOMER WHERE EMP_CODE = '"+getStaffCode+"' AND CUS_CASE = 'OPEN'");

            if (rset.next())
            {
                jTextField18.setText(rset.getString("EMP_CODE"));
                jTextField19.setText(rset.getString("EMP_NAME"));
                jTextField20.setText(rset.getString("EMP_IC"));
                jFormattedTextField1.setText(rset.getString("EMP_DOB"));
                if(rset.getString("EMP_GENDER").equals("MALE"))
                {
                    jRadioButton3.setSelected(true);
                }
                else
                {
                    jRadioButton4.setSelected(true);
                }
                jComboBox1.setSelectedItem(rset.getString("EMP_RACE"));
                jComboBox2.setSelectedItem(rset.getString("EMP_RELIGION"));
                jTextField28.setText(rset.getString("EMP_NATIONALITY"));
                jTextField21.setText(rset.getString("EMP_CONTACT"));
                jTextArea3.setText(rset.getString("EMP_ADDRESS"));
                jFormattedTextField2.setText(rset.getString("EMP_INDATE"));             
                if(rset.getString("EMP_TYPE").equals("ADMINISTRATIVE"))
                {
                    jRadioButton1.setSelected(true);
                }
                else
                {
                    jRadioButton2.setSelected(true);
                }
            }

             if (rset2.next()) {
                      String emp_tp = rset2.getString("EMP_TOTALPAYMENT");

                      if(emp_tp!=null) {
                        jTextField25.setText(rset2.getString("EMP_TOTALPAYMENT"));
                      }

                       else {
                          jTextField25.setText("0");
                       }
                    }

                  if (rset3.next()){
                      String emp_tc = rset3.getString("EMP_TOTALCASE");

                      if(emp_tc!=null) {
                        jTextField24.setText(rset3.getString("EMP_TOTALCASE"));
                      }

                       else {
                          jTextField24.setText(rset3.getString("0"));
                       }
                   }

                  if (rset4.next())
                  jTextField22.setText(rset4.getString("EMP_TOTALSUCCESSCASE"));

                  if (rset5.next())
                  jTextField23.setText(rset5.getString("EMP_TOTALFAILEDCASE"));

        }
        catch (SQLException ex)
        {
             showMessage3();
        }
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** EDITING INFORMATION ***************************************
    private void editData()
    {     
        String staffCode = jTextField18.getText();
        String staffName = jTextField19.getText();
        String staffIcNumber = jTextField20.getText();
        String staffDateOfBirth = jFormattedTextField1.getText();
        String staffGender;
        if(jRadioButton3.isSelected()== true)
                {
                    staffGender = "MALE" ;
                }
                else
                {
                    staffGender = "FEMALE" ;
                }
        String staffRace = jComboBox1.getSelectedItem().toString();
        String staffReligion = jComboBox2.getSelectedItem().toString();
        String staffNationality = jTextField28.getText();
        String staffContact = jTextField21.getText();
        String staffAddress = jTextArea3.getText();
        String staffDateJoined = jFormattedTextField2.getText();
        String totalSuccessCase = jTextField22.getText();
        String totalFailedCase =jTextField23.getText();
        String totalCase = jTextField24.getText();
        String totalPayment = jTextField25.getText();
        String staffCategory;
        if(jRadioButton1.isSelected() == true)
                {
                    staffCategory = "ADMINISTRATIVE" ;
                }
                else
                {
                    staffCategory = "STAFF" ;
                }

          String updateQuery="UPDATE EMPLOYEE SET EMP_NAME='"+staffName+"', EMP_IC='"+staffIcNumber+"',"
                + "EMP_DOB='"+staffDateOfBirth+"', EMP_GENDER='"+staffGender+"',EMP_RACE='"+staffRace+"',EMP_RELIGION='"+staffReligion+"',EMP_NATIONALITY='"+staffNationality+"',EMP_CONTACT='"+staffContact+"', EMP_ADDRESS='"+staffAddress+"',EMP_INDATE='"+staffDateJoined+"',EMP_TOTALSUCCESSCASE='"+totalSuccessCase+"', "
                 + "EMP_TOTALFAILEDCASE='"+totalFailedCase+"',EMP_TOTALCASE='"+totalCase+"', EMP_TOTALPAYMENT='"+totalPayment+"',EMP_TYPE='"+staffCategory+"' WHERE EMP_CODE='"+staffCode+"'";

         connectDatabase();
         try
         {
            Statement stmt = con.createStatement();
            stmt.executeUpdate(updateQuery);
            showMessage2();
          }
            catch (Exception e)
            {
                 showMessage3();
            }

            retrieveData();

    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** ADDING NEW DATA *********************************************
    private void addData()
    {
        String staffCode = jTextField2.getText();
        String staffName = jTextField3.getText();
        String staffIcNumber = jTextField4.getText();
        String staffDateOfBirth = jFormattedTextField3.getText();
        String staffGender;
        if(jRadioButton11.getActionCommand().equals("MALE"))
                {
                    staffGender = "MALE" ;
                }
                else
                {
                    staffGender = "FEMALE" ;
                }
        String staffRace = jComboBox5.getSelectedItem().toString();
        String staffReligion = jComboBox6.getSelectedItem().toString();
        String staffNationality = jTextField26.getText();
        String staffContact = jTextField5.getText();
        String staffAddress = jTextArea1.getText();
        String staffDateJoined = jFormattedTextField4.getText();
        String totalSuccessCase = jTextField6.getText();
        String totalFailedCase = jTextField7.getText();
        String totalCase = jTextField8.getText();
        String totalPayment = jTextField9.getText();
        String staffCategory;
        if(jRadioButton9.getActionCommand().equals("ADMINISTRATIVE"))
                {
                    staffCategory = "ADMINISTRATIVE" ;
                }
                else
                {
                    staffCategory = "STAFF" ;
                }


         String addQuery="INSERT INTO EMPLOYEE VALUES('"+staffCode+"','"+staffName+"','"+staffIcNumber+"','"+staffDateOfBirth+"','"+staffGender+"'"
                + ",'"+staffRace+"','"+staffReligion+"','"+staffNationality+"','"+staffContact+"','"+staffAddress+"','"+staffDateJoined+"','"+totalSuccessCase+"','"+totalFailedCase+"','"+totalCase+"','"+totalPayment+"','"+staffCategory+"')";
         String insertPassword="INSERT INTO EMP_PASSWORD VALUES('"+staffIcNumber+"','"+staffCode+"')";

         connectDatabase();
         try
         {
             Statement stmt = con.createStatement();
             stmt.executeUpdate(addQuery);
             stmt.executeUpdate(insertPassword);
             showMessage2();
                  
          }
            catch (Exception e)
            {
                 showMessage3();
            }

             retrieveData();
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** DELETING DATA ***********************************************
    private void deleteData()
    {
        connectDatabase();
        try
        {
            jTextField18.setText((String) newtable1.getValueAt(jTable1.getSelectedRow(), 0));
            String getStaffCode = jTextField18.getText();
            Statement stmt = con.createStatement();

            if(showMessage() == 0)
            {
            ResultSet rset = getResultSet("DELETE FROM EMPLOYEE WHERE EMP_CODE='"+getStaffCode+"'");
            jButton11.setEnabled(false);
            jButton2.setEnabled(false);
            jButton4.setEnabled(false);
            }

            else
                return;
        }

        catch (SQLException ex){
        }

        retrieveData();
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** CLEARING TEXTFIELD AFTER ADDING *****************************
    private void clearData()
    {
        jTextField2.setText("");
        jTextField3.setText("");
        jTextField4.setText("");
        jFormattedTextField3.setText("");
        jRadioButton9.setSelected(false);
        jRadioButton10.setSelected(false);
        jRadioButton11.setSelected(false);
        jRadioButton12.setSelected(false);
        jComboBox5.setSelectedItem("CHINESE");
        jComboBox6.setSelectedItem("BUDDHIST");
        jTextField5.setText("");
        jTextArea1.setText("");
        jFormattedTextField4.setText("");
        jTextField6.setText("");
        jTextField7.setText("");
        jTextField8.setText("");
        jTextField9.setText("");
        jTextField26.setText("");
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** SEARCHING DATA ***********************************************
   private void searchData()
    {
        String search = jTextField1.getText();
        String searchType = jComboBox7.getSelectedItem().toString();
        String searchQuery;
        if (searchType.equals("EMPLOYEE CODE"))
        {
          searchQuery = "SELECT * FROM EMPLOYEE WHERE EMP_CODE='"+search+"'";
        }
        else
        {
          searchQuery = "SELECT * FROM EMPLOYEE WHERE EMP_IC='"+search+"'";
        }

        jTable1.repaint();

        Dimension THIS_SIZE = (jLayeredPane1.getSize());
        jTable1.setMaximumSize(THIS_SIZE);
        jTable1.setMinimumSize(THIS_SIZE);
        jTable1.setPreferredSize(THIS_SIZE);

        int countRow = 0;
        int countColumn = 0;
        int countRow2 = 0;
        int countColumn2 = 0;
        int count = 0;

        connectDatabase();
        try
        {
            Statement stmt = con.createStatement();
            ResultSet rset = stmt.executeQuery(searchQuery);

            while (rset.next())
            {
                countRow++;
            }

            ResultSetMetaData metadata = rset.getMetaData();
            countColumn = metadata.getColumnCount();

            newtable1.setDataSize(countRow, 3);
            newtable1.setColumnNameSize();

            DatabaseMetaData meta = con.getMetaData();

            ResultSet rset2 = meta.getColumns(null, null, "EMPLOYEE", null);

                newtable1.setColumnName(0,"EMPLOYEE CODE");
                newtable1.setColumnName(1,"EMPLOYEE NAME");
                newtable1.setColumnName(2,"EMPLOYEE IC NUMBER");

            count = 0;

            rset = stmt.executeQuery(searchQuery);
            while(rset.next())
            {
                newtable1.addString(countRow2, countColumn2, rset.getString("EMP_CODE"));
                countColumn2++;
                newtable1.addString(countRow2, countColumn2, rset.getString("EMP_NAME"));
                countColumn2++;
                newtable1.addString(countRow2, countColumn2, rset.getString("EMP_IC"));
                countColumn2++;

                countColumn2 = 0;
                countRow2++;
            }
        }

        catch (Exception e)
        {
        System.out.println("Error");
        }

        this.setTable();

        if(searching == true){
        ListSelectionModel selectionModel = jTable1.getSelectionModel();
        selectionModel.addListSelectionListener(new ListSelectionListener() {

        public void valueChanged(ListSelectionEvent e)
        {
            jButton11.setEnabled(true);
            jButton2.setEnabled(true);
            jButton4.setEnabled(true);
        }
        });
        }
    }   
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE ADD BUTTON ***********************************************
    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        jPanel1.setVisible(false);
        jPanel4.setVisible(true);
        jPanel7.setVisible(false);
        jPanel8.setVisible(false);
        jTextField6.setEnabled(false);
        jTextField7.setEnabled(false);
        jTextField8.setEnabled(false);
        jTextField9.setEnabled(false);
        jTextField22.setEnabled(false);
        jTextField23.setEnabled(false);
        jTextField24.setEnabled(false);
    }//GEN-LAST:event_jButton3ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE EDIT BUTTON **********************************************
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        jPanel1.setVisible(false);
        jPanel4.setVisible(false);
        jPanel7.setVisible(false);
        jPanel8.setVisible(true);
        jTextField22.setEnabled(false);
        jTextField23.setEnabled(false);
        jTextField24.setEnabled(false);
        jTextField25.setEnabled(false);
        viewEditData();
    }//GEN-LAST:event_jButton2ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE VIEW BUTTON **********************************************
    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
        jPanel1.setVisible(false);
        jPanel4.setVisible(false);
        jPanel7.setVisible(true);
        jPanel8.setVisible(false);

        jTextField27.setEnabled(false);
        jTextField10.setEnabled(false);
        jTextField11.setEnabled(false);
        jTextField12.setEnabled(false);
        jTextField13.setEnabled(false);
        jTextArea2.setEnabled(false);
        jTextField14.setEnabled(false);
        jTextField15.setEnabled(false);
        jTextField16.setEnabled(false);
        jTextField17.setEnabled(false);
        jFormattedTextField5.setEnabled(false);
        jFormattedTextField6.setEnabled(false);
        jRadioButton5.setEnabled(false);
        jRadioButton6.setEnabled(false);
        jRadioButton7.setEnabled(false);
        jRadioButton8.setEnabled(false);
        jComboBox3.setEnabled(false);
        jComboBox4.setEnabled(false);
        viewData();
    }//GEN-LAST:event_jButton11ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE CANCEL BUTTON IN ADD MENU ********************************
    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        jPanel1.setVisible(true);
        jPanel4.setVisible(false);
        clearData();
    }//GEN-LAST:event_jButton7ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE CANCEL BUTTON IN VIEW MENU ********************************
    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        jPanel1.setVisible(true);
        jPanel7.setVisible(false);         
    }//GEN-LAST:event_jButton8ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE SAVE BUTTON IN EDIT MENU ********************************
    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        editData();
        jPanel1.setVisible(true);
        jPanel8.setVisible(false);
    }//GEN-LAST:event_jButton9ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE CANCEL BUTTON IN EDIT MENU ********************************
    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        jPanel1.setVisible(true);
        jPanel8.setVisible(false);         
    }//GEN-LAST:event_jButton10ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** INPUT VALIDATION FOR THE ADD MENU ****************************
    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        if(jTextField2.getText().equals(""))
        fillAll = false;   
        
        if(jTextField3.getText().equals(""))
        fillAll = false;
        
        if(jTextField4.getText().equals(""))
        fillAll = false; 
        
        if(jFormattedTextField3.getText().equals(""))
        fillAll = false;

        if(jTextField5.getText().equals(""))
        fillAll = false;
        
        if(jTextArea1.getText().equals(""))
        fillAll = false;
        
        if(jFormattedTextField4.getText().equals(""))
        fillAll = false;

        if(jTextField26.getText().equals(""))
        fillAll = false;

        if(fillAll == true)
        {
        addData();
        jPanel4.setVisible(false);
        jPanel1.setVisible(true);
        clearData();
        fillAll = true;
        }
        
        else
        {
        showMessage3();
        fillAll = true;
        }             
    }//GEN-LAST:event_jButton6ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE DELETE BUTTON ********************************************
    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        deleteData();
    }//GEN-LAST:event_jButton4ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE SEARCH BUTTON ********************************************
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        if (jTextField1.getText().equals(""))
        {
            searching = false;
            retrieveData();
        }
        else
        {
            searching = true;
            searchData();
        }                   
    }//GEN-LAST:event_jButton1ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** THE SEARCH TEXTFIELD *****************************************
    private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyReleased
        if(jTextField1.getText().equals(""))
          {
            searching = false;
            retrieveData();
          }

          else
         {
            searching = true;
            searchData();
         }              
    }//GEN-LAST:event_jTextField1KeyReleased
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** GOING BACK TO MENU ********************************************
    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        MainMenu newGUI = new MainMenu();
        newGUI.show();
        newGUI.setSize(640, 680);
        newGUI.setResizable(false);

        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension windowSize = newGUI.getSize();

        int windowX = Math.max(0, (screenSize.width  - windowSize.width ) / 2);
        int windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);

        newGUI.setLocation(windowX, windowY);
        newGUI.show();
        this.dispose();
    }//GEN-LAST:event_jButton5ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** GOING TO VIEW ALL STAFF TABLE ********************************
    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
        ViewAllStaff newGUI = new ViewAllStaff();
        newGUI.show();
        newGUI.setSize(1010, 590);
        newGUI.setResizable(false);

        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension windowSize = newGUI.getSize();

        int windowX = Math.max(0, (screenSize.width  - windowSize.width ) / 2);
        int windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);

        newGUI.setLocation(windowX, windowY);
        newGUI.show();
        this.dispose();
    }//GEN-LAST:event_jButton12ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*~



//***************************** DISPLAYING POP OUT MESSAGE ***********************************
    public int showMessage(){
         return (JOptionPane.showOptionDialog(jLayeredPane1,
                "Are you sure you want to delete this?Once deleted,it's unrecoverable.",
                "Confirmation",//title
                JOptionPane.YES_NO_OPTION,
                JOptionPane.WARNING_MESSAGE,
                null,        //custom icon
                deleteOptions,     //the titles of buttons
                deleteOptions[0])); //default button title
    }


     public int showMessage2(){
         return (JOptionPane.showOptionDialog(jLayeredPane1,
                "Information has been succesfully edited or added.",
                "Confirmation",//title
                JOptionPane.OK_OPTION,
                JOptionPane.WARNING_MESSAGE,
                null,        //custom icon
                confirmOptions,     //the titles of buttons
                confirmOptions[0])); //default button title
    }

    public int showMessage3(){
         return (JOptionPane.showOptionDialog(jLayeredPane1,
                "Information cannot be added or edited because of invalid data.Please enter again.",
                "Confirmation",//title
                JOptionPane.OK_OPTION,
                JOptionPane.WARNING_MESSAGE,
                null,        //custom icon
                errorMesssage,     //the titles of buttons
                errorMesssage[0])); //default button title
    }
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Staff().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JComboBox jComboBox3;
    private javax.swing.JComboBox jComboBox4;
    private javax.swing.JComboBox jComboBox5;
    private javax.swing.JComboBox jComboBox6;
    private javax.swing.JComboBox jComboBox7;
    private javax.swing.JFormattedTextField jFormattedTextField1;
    private javax.swing.JFormattedTextField jFormattedTextField2;
    private javax.swing.JFormattedTextField jFormattedTextField3;
    private javax.swing.JFormattedTextField jFormattedTextField4;
    private javax.swing.JFormattedTextField jFormattedTextField5;
    private javax.swing.JFormattedTextField jFormattedTextField6;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JRadioButton jRadioButton10;
    private javax.swing.JRadioButton jRadioButton11;
    private javax.swing.JRadioButton jRadioButton12;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JRadioButton jRadioButton3;
    private javax.swing.JRadioButton jRadioButton4;
    private javax.swing.JRadioButton jRadioButton5;
    private javax.swing.JRadioButton jRadioButton6;
    private javax.swing.JRadioButton jRadioButton7;
    private javax.swing.JRadioButton jRadioButton8;
    private javax.swing.JRadioButton jRadioButton9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JTable jTable1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextArea jTextArea2;
    private javax.swing.JTextArea jTextArea3;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField10;
    private javax.swing.JTextField jTextField11;
    private javax.swing.JTextField jTextField12;
    private javax.swing.JTextField jTextField13;
    private javax.swing.JTextField jTextField14;
    private javax.swing.JTextField jTextField15;
    private javax.swing.JTextField jTextField16;
    private javax.swing.JTextField jTextField17;
    private javax.swing.JTextField jTextField18;
    private javax.swing.JTextField jTextField19;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField20;
    private javax.swing.JTextField jTextField21;
    private javax.swing.JTextField jTextField22;
    private javax.swing.JTextField jTextField23;
    private javax.swing.JTextField jTextField24;
    private javax.swing.JTextField jTextField25;
    private javax.swing.JTextField jTextField26;
    private javax.swing.JTextField jTextField27;
    private javax.swing.JTextField jTextField28;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField5;
    private javax.swing.JTextField jTextField6;
    private javax.swing.JTextField jTextField7;
    private javax.swing.JTextField jTextField8;
    private javax.swing.JTextField jTextField9;
    // End of variables declaration//GEN-END:variables

}
